/******************************************************************************
 * The contents of this file are subject to the   JDI License  Version 1.0
 * ("License"); You may not use this file except in compliance with the License
 * Software distributed under the License is distributed on an  "AS IS"  basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
 * the specific language governing rights and limitations under the License.
 * The Initial Developer of the Original Code is 陈慧然. Portions created by 
 * 陈慧然 are Copyright 陈慧然.
 * All Rights Reserved.
 *
 *              Contact john_holen@163.com for licensing alternatives.
 *
 *****************************************************************************/


package org.peony.client.web.components.word;

import org.peony.client.web.components.WebComponents;
import org.peony.client.web.tools.HtmlTextConvert;
import org.peony.standard.tools.SIConvertText;

/**
 *  
 *
 *  @author     陈慧然
 *  @version    Id: Word.java, v 0.000 2008-3-18 下午05:39:45 陈慧然 Exp
 */
public class Word extends WebComponents{
	private String value = empty;
	private static final String id = "WORD";
	private static final String css = "WORD";
	private static final SIConvertText tools = HtmlTextConvert.getInstance();
	public String getId() {
		return this.id;
	}

	public String getUIClass() {
		return this.css;
	}

	public void setId(String id) {
		;
	}

	public void setUIClass(String css) {
		;
	}

	public String toStandardString(){
		return tools.dataToShow(value);
	}

	public String getValueForHtml() {
		return tools.showToData(value);
	}
	
	public String getValue(){
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
}
